<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  name: 'App',
  created () {
    setTimeout(() => {
      window.L2Dwidget.init({
        pluginRootPath: 'http://cdn.vsery.com/live2dw/',
        pluginJsPath: 'http://cdn.vsery.com/live2dw/lib/',
        pluginModelPath: 'live2d-widget-model-koharu/assets/',
        tagMode: false,
        debug: false,
        model: { jsonPath: 'http://cdn.vsery.com/live2dw/live2d-widget-model-koharu/assets/koharu.model.json' },
        display: { position: 'left', width: 150, height: 300 },
        mobile: { show: true },
        log: false
      })
    }, 1000)
  },
  mounted () {
    // var targetProtocol = 'http:'
    // if (window.location.protocol !== targetProtocol) {
    //   window.location.href = targetProtocol + window.location.href.substring(window.location.protocol.length)
    // }
  }
}

</script>
<style lang="less">
.size {
  width: 100%;
  height: 100%;
}

html,
body {
  .size;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#app {
  .size;
}

</style>
